package cn.virens.mybaits;

import cn.virens.mybaits.model.SysLog;
import com.alibaba.fastjson.JSON;
import io.mybatis.provider.EntityFactory;
import io.mybatis.provider.EntityTable;

public class Ads {
    public static void main(String[] args) {
        EntityTable et = EntityFactory.create(SysLog.class);

        System.out.println(JSON.toJSONString(et.columnNames()));

        et.selectColumns().forEach(ec -> {
            System.out.println(et.table() + "." + (et.useResultMaps() ? ec.column() : ec.columnAsProperty()));
        });
    }
}
